package com.feicheng.lanniao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feicheng.lanniao.entity.Role;
import com.feicheng.lanniao.result.ResultInfo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author cailongyang
 * @since 2021-07-13
 */
public interface IRoleService extends IService<Role> {

	public ResultInfo deleteRole(Integer roleId);

	public ResultInfo addRole(Role role, String permissions);

	public ResultInfo updateRole(Role role, String permissions);
	
	public ResultInfo getRoleById(Integer roleId);
	
	public ResultInfo all();
	
	public ResultInfo list(
			String roleName,
			Boolean status,
			Integer currentPage,
			Integer pageSize
			) ;
}
